import axios from 'axios'
import store from "../store/index"


const Server = axios.create({
    // baseURL: "http://39.100.7.70:81/",
    timeout: 5000,
});
// Server.interceptors.request.use(function (config) {
//     if (store.state.token.length > 0) {
//         config.headers['Authorization'] = store.state.token;
//     }
//     return config
// }, function (error) {
//     return Promise.reject(error);
// })
// Server.interceptors.response.use(function (response) {
//     return response.data
// }, function (error) {
//     return Promise.reject(error);
// })

export default Server